package com.itelecom.oss.mobile.domains;

import android.os.Parcel;
import android.os.Parcelable;

public class Users implements Parcelable{

    private String login;

    private String password;


    public Users() {
    }

    public Users(Parcel in){
    	login=in.readString();
    	password=in.readString();
    }
    
    public Users(String login, String password){
        this.login = login;
        this.password = password;

    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(login);
		dest.writeString(password);
		
	}
	
	public static final Parcelable.Creator<Users> 
	CREATOR= new Parcelable.Creator<Users>() {
		public Users createFromParcel(Parcel in){
			return new Users(in);
		}

		@Override
		public Users[] newArray(int size) {
			return new Users[size];
		}
	};
}
